import request from '@/utils/request'

// 查询楼栋资料列表
export function listTerminfo(query) {
  return request({
    url: '/house_sale/terminfo/list',
    method: 'get',
    params: query
  })
}
// 查询所有项目名称
export function getProject() {
  return request({
    url: '/house_sale/terminfo/projectList',
    method: 'get',
  })
}
// 查询楼栋资料详细
export function getTerminfo(termid) {
  return request({
    url: '/house_sale/terminfo/' + termid,
    method: 'get'
  })
}

// 新增楼栋资料
export function addTerminfo(data) {
  return request({
    url: '/house_sale/terminfo',
    method: 'post',
    data: data
  })
}

// 修改楼栋资料
export function updateTerminfo(data) {
  return request({
    url: '/house_sale/terminfo',
    method: 'put',
    data: data
  })
}

// 删除楼栋资料
export function delTerminfo(termid) {
  return request({
    url: '/house_sale/terminfo/' + termid,
    method: 'delete'
  })
}
